package com.ssyx.product.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ssyx.model.product.SkuInfo;

/**
* @author 34901
* @description 针对表【sku_info(sku信息)】的数据库操作Mapper
* @createDate 2024-04-27 23:25:07
* @Entity com.ssyx.product.pojo.SkuInfo
*/
public interface SkuInfoMapper extends BaseMapper<SkuInfo> {

    //解锁商品库存
    void unlockStock(Long skuId, Integer skuNum);

    //验证库存
    SkuInfo checkStock(Long skuId, Integer skuNum);

    //锁定库存
    Integer lockStock(Long skuId, Integer skuNum);
}




